<?php

namespace App\Http\Controllers\wechat\single;

use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;
use lxs\api\ApiResponse;
use lxs\tools\Tools;

class CustomerServiceController extends Controller
{

    /**
     * 获取客服二维码
     */
    public function getCustomerServiceQrcode(): JsonResponse
    {

        $qrcode = Tools::Config('SYSTEM.curstomer_qrcode');

        return ApiResponse::success('获取客服二维码成功', [
            'qrcode' => $qrcode
        ]);
    }


    /**
     * 获取金额之间区别页面数据
     */
    public function getAmountDifferenceData(): JsonResponse
    {
        $data = Tools::Config('SINGLE.amount_difference');
        return ApiResponse::success('获取金额之间区别页面数据成功', ['data'=>$data]);
    }


    /**
     * 获取提现规则数据成功
     */
    public function getWithdrawalRulesData(): JsonResponse
    {
        $data = Tools::Config('SINGLE.withdraw_rules');
        return ApiResponse::success('获取提现规则数据成功', ['data'=>$data]);
    }


    /**
     * 获取实名认证服务协议页面数据
     */
    public function getRealNameAgreementData(): JsonResponse
    {
        $data = Tools::Config('SINGLE.real_name_agreement');
        return ApiResponse::success('获取实名认证服务协议页面数据成功', ['data'=>$data]);
    }

}
